package com.lpc.carinfo;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.lpc.carinfo.util.ActivityStackManager;

/**
 * Created by lipc0113 on 2017/11/18.
 */

public class BaseActivity extends AppCompatActivity {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);

        ActivityStackManager.getInstance().push(this);
    }

    @Override
    protected void onDestroy() {

        ActivityStackManager.getInstance().pop(this);
        super.onDestroy();
    }
}
